<include file="public@header"/>
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>编辑组长</a></li>
    </ul>
    <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('group/edit')}"
          enctype="multipart/form-data">


        <div class="form-group">
            <label for="js-smtpsecure" class="col-sm-2 control-label">
                <span class="form-required">*</span>姓名
            </label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" name="name" value="{$res['name']}">
            </div>
        </div>


        <div class="form-group">
            <label for="js-smtpsecure" class="col-sm-2 control-label">
                <span class="form-required">*</span>工种
            </label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" name="type" value="{$res['type']}">
            </div>
        </div>

        <div class="form-group">

            <label for="js-smtpsecure" class="col-sm-2 control-label">
                <span class="form-required">*</span>联系方式
            </label>
            <div class="col-md-6 col-sm-10">
                <input type="number" class="form-control" name="mobile" value="{$res['mobile']}">
            </div>
        </div>

        <div class="form-group">

            <label for="js-smtpsecure" class="col-sm-2 control-label">
                <span class="form-required">*</span>家庭住址
            </label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" name="address" value="{$res['address']}">
            </div>
        </div>

        <div class="form-group">

            <label for="js-smtpsecure" class="col-sm-2 control-label">
                <span class="form-required">*</span>是否在职
            </label>
            <div class="col-md-6 col-sm-10">
                <select name="status" class="form-control">
                    <if condition="$res['status'] eq 1">
                        <option value="1">在职</option>
                        <option value="2">离职</option>
                        <else/>
                        <option value="2">离职</option>
                        <option value="1">在职</option>
                    </if>
                </select>
            </div>
        </div>


        <div class="form-group">
            <label for="js-smtpsecure" class="col-sm-2 control-label">
                <span class="form-required">*</span>身份证号
            </label>
            <div class="col-md-6 col-sm-10">
                <input type="number" class="form-control" name="card" value="{$res['card']}">
            </div>
        </div>

        <div class="form-group">
            <label for="js-smtpsecure" class="col-sm-2 control-label">
                开户行
            </label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" name="bankName" value="{$res['bankName']}">
            </div>
        </div>


        <div class="form-group">
            <label for="js-smtpsecure" class="col-sm-2 control-label">
                银行卡号
            </label>
            <div class="col-md-6 col-sm-10">
                <input type="number" class="form-control" name="bankNum" value="{$res['bankNum']}">
            </div>
        </div>

        <div class="form-group">
            <label for="js-smtpsecure" class="col-sm-2 control-label">
                <span class="form-required">*</span>入职时间
            </label>
            <div class="col-md-6 col-sm-10">
                <input type="date" class="form-control" name="insTime" value="{$res['insTime']}">
            </div>
        </div>

        <div class="form-group">
            <label for="js-smtpsecure" class="col-sm-2 control-label">
                离职时间
            </label>
            <div class="col-md-6 col-sm-10">
                <input type="date" class="form-control" name="outTime" value="{$res['outTime']}">
            </div>
        </div>

        <div class="form-group">
            <label for="js-smtpsecure" class="col-sm-2 control-label">
                身份证正/反面
            </label>
            <div class="col-md-6 col-sm-10">
                <foreach name="res['imgs']" item="v">
                    <?php
                        if($v != 'http://'. $_SERVER['SERVER_NAME']){
                    ?>
                    <img src="{$v}" alt="" width="250" height="150">
                    <?php } ?>
                </foreach>
                <input type="file" name="image[]" multiple/> <br>
            </div>
        </div>
        <input type="hidden" name="id" value="{$res['id']}">


        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
                <a class="btn btn-default" href="javascript:history.back(-1);">{:lang('BACK')}</a>
            </div>
        </div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>